/*
 *    Copyright (c) 2018-2025, cloud All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the pig4cloud.com developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: cloud
 */

package com.fuyao.cloud.asset.vo.apply;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;

/**
 * 采购申请创建对象
 *
 * @author 时间的朋友
 * @date 2021-11-22 13:58:37
 */
@Data
@ApiModel(value = "采购申请分页视图对象")
public class PurchaseapplyListPageVO {

	@ApiModelProperty(value="状态：默认为0{0：草稿、1：处理中、2：已审批、3：已完成、4：作废}状态值根据父单的更新，已完成状态根据单项入库数量等于采购数量并且验收单完成后更新为已完成 ")
	private String status;

	@ApiModelProperty(value="所属单据的ID")
	private Long parentId;

	@ApiModelProperty(value="所属单据名称")
	private String parentCaseid;

	@ApiModelProperty(value="批次号")
	private String batchnumber;

	@ApiModelProperty(value="资产分类全编码")
	private String classifiedCode;

	@ApiModelProperty(value="资产分类全名称")
	private String classified;

	@ApiModelProperty(value="资产分类名称")
	private String ctiName;

	@ApiModelProperty(value="资产分类ID")
	private Long ctiId;

	@ApiModelProperty(value="照片")
	private String photo;

	@ApiModelProperty(value="条形码")
	private String barcode;

	@ApiModelProperty(value="名称")
	private String name;

	@ApiModelProperty(value="规格型号")
	private String model;

	@ApiModelProperty(value="计量单位")
	private String unit;

	@ApiModelProperty(value="采购数量")
	private BigDecimal quantity;

	@ApiModelProperty(value="单价")
	private BigDecimal price;

	@ApiModelProperty(value="预计费用")
	private BigDecimal amount;

	@TableField(exist = false)
	private Long amountLong;

	@ApiModelProperty(value="备注")
	private String remarks;

	@ApiModelProperty(value="已采购数量")
	private BigDecimal purchasedQuantity;

	@ApiModelProperty(value="已到货数量")
	private BigDecimal arrivedQuantity;

	@ApiModelProperty(value="已发放数量")
	private BigDecimal grantQuantity;

	@ApiModelProperty(value="资产信息ID")
	private Long sauId;

	/**
	 * 父级信息
	 */
	@ApiModelProperty(value = "单据类型")
	private String type;

	@ApiModelProperty(value = "供应商ID")
	private Long supplierId;

	@ApiModelProperty(value = "供应商名称")
	private String supplierName;

	@ApiModelProperty(value="预算ID")
	private Long budgetId;

	@ApiModelProperty(value="预算编号")
	private String budgetNumber;

	@ApiModelProperty(value="收货信息")
	private String receivinfo;

	@ApiModelProperty(value = "采购方式")
	private String method;

	@ApiModelProperty(value = "货币类型")
	private String currencyType;

	@ApiModelProperty(value="单位、部门ID")
	private Long deptId;

	@ApiModelProperty(value="部门全名称")
	private String deptFullname;

	@ApiModelProperty(value="创建人")
	private String createBy;

	@ApiModelProperty(value="创建人ID")
	private Long createId;

	@ApiModelProperty(value="资产编码")
	private String number;

}
